package com.temp.dto;

import lombok.Data;

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.math.BigDecimal;

@Data
public class WithdrawDTO {

    @NotNull(message = "apiMsg.amountNotNull")
    @DecimalMin(value = "0.00", inclusive = false, message = "apiMsg.targetAmountMin,0.00")
    private BigDecimal amount;

    @NotBlank(message = "apiMsg.walletAddressNotNull")
    @Pattern(regexp = "^T[a-zA-Z0-9]{33}$", message = "apiMsg.walletAddressNotValid,34")
    private String walletAddress;
}
